import { createRouter, createWebHashHistory } from 'vue-router'

import AcSwitch from '../views/AcSwitch.vue'
import Recharge from '../views/Recharge.vue'
import Bill from '../views/bill.vue'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    { path: '/', name: 'Recharge', component: Recharge },
    { path: '/recharge', redirect: '/' },
    { path: '/ac', name: 'AcSwitch', component: AcSwitch },
    { path: '/bill', name: 'Bill', component: Bill }
  ]
})

export default router 